package io.github.rascaler.dcenter.ws.handler;

import com.alibaba.fastjson.TypeReference;
import io.github.rascaler.dcenter.ws.message.SocketMessage;
import io.github.rascaler.dcenter.ws.message.SocketMessagePayload;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class AbstractSocketHandler<T extends SocketMessagePayload> implements SocketHandler<T>{

    @Override
    public TypeReference<SocketMessage<T>> getTypeReference() {
        return new TypeReference<SocketMessage<T>>() {};
    }
}
